package cc.rengu.redp.common.domain;

/**
 * 系统常量
 */
public class RedpConstant {

    //系统名称
    public static final String SYSTEM_NAME = "ibos";
    // user缓存前缀
    public static final String USER_CACHE_PREFIX = SYSTEM_NAME + ".cache.user.";
    // user角色缓存前缀
    public static final String USER_ROLE_CACHE_PREFIX = SYSTEM_NAME + ".cache.user.role.";
    // user权限缓存前缀
    public static final String USER_PERMISSION_CACHE_PREFIX = SYSTEM_NAME + ".cache.user.permission.";
    // user个性化配置前缀
    public static final String USER_CONFIG_CACHE_PREFIX = SYSTEM_NAME + ".cache.user.config.";
    // token缓存前缀
    public static final String TOKEN_CACHE_PREFIX = SYSTEM_NAME + ".cache.token.";
    // token更新限流前缀
    public static final String TOKEN_CACHE_LIMIT_PREFIX = SYSTEM_NAME + ".cache.token.limit.";
    // 存储在线用户的zset前缀
    public static final String ACTIVE_USERS_ZSET_PREFIX = SYSTEM_NAME + ".user.active";
    // hawk监控模块的zset前缀
    public static final String HAWK_REALTIME_ZSET_PREFIX = SYSTEM_NAME + ".hawk.realtime.";
    // hawk监控配置缓存前缀
    public static final String HAWK_CONFIG_PREFIX = SYSTEM_NAME + ".hawk.config.cache.";
    // 数据字字典前缀
    public static final String DICTIONARY_PREFIX = SYSTEM_NAME + ".dict.data.";
    // 登陆验证码前缀
    public static final String LOGIN_CAPTCHA_PREFIX = SYSTEM_NAME + ".login.captcha.";

    // 排序规则： descend 降序
    public static final String ORDER_DESC = "descend";
    // 排序规则： ascend 升序
    public static final String ORDER_ASC = "ascend";

    // 按钮
    public static final String TYPE_BUTTON = "1";
    // 菜单
    public static final String TYPE_MENU = "0";
}
